package org.jiuling.tencent.sms.config;

import org.jiuling.tencent.sms.config.enums.RegionEnum;

/**
 * 腾讯配置
 * @author 紫灵
 * @date 2021年12月04日 13时38分54秒
 */
public class TencentConfig {

    /** 秘钥id */
    private String secretId;
    /** 秘钥 */
    private String secretKey;
    /** 地域 */
    private RegionEnum region;

    public String getSecretId() {
        return secretId;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public RegionEnum getRegion() {
        return region;
    }

    public static class Builder{
        private final TencentConfig tencentConfig;

        public Builder() {
            tencentConfig = new TencentConfig();
        }

        public Builder addSecretId(String secretId){
            tencentConfig.secretId = secretId;
            return this;
        }

        public Builder addSecretKey(String secretKey){
            tencentConfig.secretKey = secretKey;
            return this;
        }

        public Builder addRegion(RegionEnum region){
            tencentConfig.region = region;
            return this;
        }

        public TencentConfig builder(){
            return tencentConfig;
        }
    }
}
